
#pragma once

#include "allocation.h"

namespace cgen {
namespace internal {

class CPU : public AllStatic
{
public:
    // Initializes the cpu architecture support. Called once at VM startup.
    static void Setup();

    // Flush instruction cache.
    static void FlushICache(void * start, size_t size);

    // Try to activate a system level debugger.
    static void DebugBreak();
};

}} // namespace cgen::internal
